import React from 'react'
import {Button} from 'antd'
import { Link,history } from 'umi'
function index() {
  return (
    <div>
        <Link to='/'>test</Link>
        <Button type="primary" danger ghost onClick={()=>{history.push('/')}}>
      Danger
    </Button>
    </div>
  )
}

export default index